package cn.com.ustudy.course.core.model.entity;

import cn.melonlib.cores.commons.model.entity.StringIdEntity;
import cn.melonlib.graphql.annos.GraphqlType;
import cn.melonlib.graphql.annos.GraphqlTypeDeclare;
import cn.melonlib.graphql.model.enums.GraphqlTypeMode;
import lombok.Data;

import java.util.List;

@Data
@GraphqlType(comment = "部门信息",declares = {@GraphqlTypeDeclare(name = "Department",mode = GraphqlTypeMode.VIEW),@GraphqlTypeDeclare(name = "DepartmentInput",mode = GraphqlTypeMode.INPUT)})
public class Department extends StringIdEntity {

    public Department() {
    }

    public Department(String code, String name, Department parent, College college) {
        this.code = code;
        this.name = name;
        this.parent = parent;
        this.college = college;
    }

    private String code;

    private String name;

    private Department parent;

    private College college;


}
